<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.livequery.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.validate.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.validate.extend.js"></script>

<script type="text/javascript" src="${pageContext.request.contextPath }/js/My97DatePicker/WdatePicker.js"></script>


<div class="module">
   <p class="title">用户信息
		<span class="title-tools">
	  		<a href="javascript: void(0);" class="asideBtn" onclick="javascript: getUserList('${param.site}');">返回</a>
	  	</span>
   </p>
   
   <c:set var="readonly" />
   <c:if test="${null!=user }">
   		<c:set value="readonly='readonly'" var="readonly"/>
   </c:if>
   
   <form id="form">
   		<div class="content">
       	   <br>
			<ul class="summary-table" style="width: 95%; margin: auto auto">
				
				<li>
					<label class="col1">头像</label>
					<span class="col2">
						<img src="/logo.png" style="width: 25px;height: 25px;">
					</span>
				</li>
				
				<li>
					<label class="col1">手机号</label>
					<span class="col2">
						<input class="ctr-input" id="mobileNumber" name="mobileNumber" value="${null==user?'':user.mobileNumber }" ${readonly }/>
					</span>
				</li>
				
				<li>
					<label class="col1">身份证号</label> 
					<span class="col2">
						<input class="ctr-input" id="idNumber" name="idNumber" value="${null==user?'':user.idNumber }" ${readonly }/>
					</span>
				</li>
				
				<li>
					<label class="col1">地 址</label>
					<span class="col2">
						<input type="text" class="ctr-input" id="address" name="address" value="${null==user?'':user.address }" ${readonly }/>
					</span>
				</li>
				
				<li>
					<label class="col1">车辆类型</label>
					<span class="col2">
						<input type="text" class="ctr-input" id="defaultVehicleType" name="defaultVehicleType" value="${null==user?'':user.defaultVehicleType }" ${readonly }/>
					</span>
				</li>
				
				<li>
					<label class="col1">注册时间</label>
					<span class="col2">
						<c:set var='time'><fmt:formatDate value='${user.createTime }' pattern='yyyy-MM-dd HH:mm:ss' /></c:set>
						<input type="text" class="ctr-input" id="createTime" name="createTime" value="${time }" ${readonly }/>
					</span>
				</li>
			</ul>
			
		</div>
    </form>
   
</div>
<script type="text/javascript">
	/* $('#updateSubmit').bind('click', function() {
		handleManager();
	}); */

	/* function handleManager() {
		if ($("#form").valid()) {
			$.ajax({
				type : "POST",
				url : contextPath + "/web/managerCenter/handleManager",
				data : $("#form").serialize(),
				dataType : "json",
				beforeSend : function() {
					$("#beforeLoading").show();
				},
				success : function(res) {
					$("#beforeLoading").hide();
					if (res.resData.status) {

						succHint();

						setTimeout(function() {
							getManagerList();
						}, 2500);

					} else {
						failHint(res.msg);
					}

				},
				error : function(msg) {
					$("#beforeLoading").hide();
					failHint();
				}
			});
		}
	} */
</script>

